<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/location/isrcharg.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Wrong $location.search() argument type</code>
<div><span class="hint">error in component <code ng:non-bindable="">$location</code>
</span>
</div>
</h1>
<div><pre class="minerr-errmsg" error-display="The first argument of the `$location#search()` call must be a string or an object.">The first argument of the `$location#search()` call must be a string or an object.</pre>
<h2 id="description">Description</h2>
<div class="description"><div class="-location-page -location-isrcharg-page"><p>To resolve this error, ensure that the first argument for the <code>$location.search</code> call is a <code>string</code> or an object.
You can use the stack trace associated with this error to identify the call site that caused this issue.</p>
<p>To learn more, please consult the <a href="api/ng.$location"><code><code>$location</code></code></a> api docs.</p>
</div></div>
</div>
